package com.angel.architecture.daos.impl;

import java.util.List;

import com.angel.architecture.persistence.ids.ObjectId;
import com.angel.dao.generic.impl.GenericSpringHibernateDAO;
import com.angel.io.daos.RowMessageLogDAO;
import com.angel.io.log.RowMessageLog;
import com.angel.io.log.RowState;

/**
 *
 * @author William
 * @since 08/April/2009
 *
 */
public class RowMessageLogSpringHibernateDAO extends GenericSpringHibernateDAO<RowMessageLog, ObjectId> implements RowMessageLogDAO {

    public RowMessageLogSpringHibernateDAO(){
        super(RowMessageLog.class, ObjectId.class);
    }

	public List<RowMessageLog> findAllByComment(String comment) {
		return (List<RowMessageLog>) super.findAll("comment", comment);
	}

	public List<RowMessageLog> findAllByRowNumber(Long rowNumber) {
		return (List<RowMessageLog>) super.findAll("rowNumber", rowNumber);
	}

	public List<RowMessageLog> findAllByState(RowState rowState) {
		return (List<RowMessageLog>) super.findAll("rowState", rowState);
	}
}
